Developing for Windows on Mac, best practices

Hi! I would like to know what experienced developers’ workflow is like if they build out an app for iOS, Android AND Windows. It appears I need to get a windows machine or VM. It also appears that I might need to duplicate my code which is what I’m trying to stay away from. So my ultimate question is: What is the best way to go about developing out an application from a Mac that would also target a Windows phone while keeping the source in the same place?

Thanks!

Did you ever get a response or figure this out. I am there now. I have developed and app running IOS and Android on my Mac. I would like to take it to Windows, but think I may either have to move to a windows machine. I think Microsoft just came out with Visual Studio for Mac that may do the trick. Visual Code is free. Visual Studio for Mac may cost a bit.