According to Apple’s legal terms and conditions, their operating systems are branded to be used only on Apple hardware. This means that running macOS on Windows is technically illegal even if you are using your own Mac’s ISO image. However, you can legally run macOS on VirtualBox on a Mac.