To be honest, Windows really should just rebase on to Linux. They can make their programs work on linux. But the OS isn't the future for Microsoft when it comes to profits. Their future is software and tooling. I don't follow MS's financials, but I bet their growth with Azure and Linux is far outpacing Windows license keys. I believe they have already indicated that Ubuntu is far more popular than their own server OS. The current and future cash cow is Microsoft making money off developer tooling/infrastructure and their apps.
And honestly, Microsoft isn't doing too bad at tooling. Had you told me 3 years ago I would be developing .NET applications, mostly ASP.Core, on linux, I woulda said you were stoned. But here I am today, cranking out .NET code that runs servers on Linux. And the tooling is pretty good and is just getting better.