The Xbox literally runs a custom build of Windows, that runs in a Virtual Machine, on top of another custom Windows based hypervisor. Then games are run in a separate VM.
All they’d have to do is port the hypervisor to different hardware, then the rest would run on top just fine.