One way is to use an app like CrossOver which allows you to run Mac applications in Windows. Another way is to use a virtual machine software such as VMware or Parallels which will allow you to run a copy of macOS on your computer.