You can enable Dark Mode Synchronization for a virtual machine.
If you enable Dark Mode Synchronization, the Light mode/Dark mode settings on the host system is synchronized automatically to the guest operating system (Windows 10 virtual machine and macOS virtual machine).