I recommend using a DesktopGL project, which will run on Windows, macOS, and Linux. Anything native to a specific OS won’t work on the other machines (Ex. System.Windows.Forms).
Be aware that there is trouble compiling shaders on non-Windows platforms, but there is a solution involving compiling via a remote Windows machine. I’m not sure if this is still valid or which other options are available.