While Virtual Box will work on Windows and that was the solution I used many years ago, the more common way to do such on Windows currently for development is to use WSL 2.
If you like Visual Studio Code then a more advanced solution is to use a container, see: Developing inside a Container.
I also left many of my notes about this on this site at Wiki Discussion: Using WSL on Windows with SWI-Prolog