If you still think that operating systems are tied to hardware, you need to update your thinking; nowadays there are lots of options that let you run one operating system within another or in parallel to another. This is true whether your base operating system is Linux, Windows or macOS X. My main system boots macOS X, for example, but also has Windows 10 and Ubuntu Linux accessible as full operating system installs.
This requires a lot of resources, however, and is typically done as a dual boot or virtual machine, which can put a lot of demands on your computing device. Certainly if you’re running apps within a VM while trying to use other programs in the native operating system, you might end up frustrated with overall performance.