I don't think this is the right solution. Something like React Native where the core logic is shared but the UI/Views can be tailored to each environment is ideal.
I believe Microsoft released some React Native stuff for desktop and hopefully, there is some work going on for MacOS.
I believe Microsoft released some React Native stuff for desktop and hopefully, there is some work going on for MacOS.