Instructions to compile on Windows:
https://retropie.org.uk/forum/topic/5202/step-by-step-how-to-build-emulationstation-on-windows
The branch and repository you're looking for:
https://github.com/pjft/EmulationStation/tree/RetroPie-Virtual-Systems-PR
Let us know how it goes!