While virtualizing macOS on non-Apple hardware is against Apple's licensing agreement, it is possible for personal use and development.