The macOS Software License Agreement states:
Oracle VirtualBox has terrible macOS guest support. Keyboard mapping breaks every update, and graphics are limited to 128 MB VRAM.
To circumvent this, the community has developed tools commonly referred to as "Unlockers" or "Patches." These small utility scripts modify the VMware binary files to "unlock" the ability to select "Apple Mac OS X" as a guest operating system option.