I'm not sure if it works for everyone but you could try reading some books to gain perspective and get some motivation. Something like can't hurt me[1] is brutal and honest. It describes the life of a man that was incredibly depressed and stuck in a rut where he had lots of excuses and how he was able to turn it around and become awe inspiring.
The problem is that not many IT departments support ubuntu. They are making lots of improvements to the UI and application management, but it can be cumbersome to get some applications working on linux. Having windows to install whatever gui apps you need or whatever other apps that aren't needed in linux, then having linux there to develop on has been pretty great. It's almost like a hybrid linux+windows operating system and not at all like running a vm on windows.
e.g. this is in my .bashrc in wsl, it writes stdout to my windows clipboard:
function cb () { powershell.exe -command "\$input | set-clipboard" }
Windows gets tons of hate in our community, but I gave it a chance a couple years ago after being frustrated with osx and it has been amazing and I think a lot of people would come around to it if they gave it a chance. I am biased towards linux though since I'm an sre, so maybe that is why I never could quite get comfortable on osx. I really disliked having to learn how to do something once on a mac, then do that same thing again on linux to get something into production.
Are you talking about developing for windows or developing on windows? I'm talking about developing on windows. I don't really care what the apis look like underneath it all. wsl on windows is a lot more intuitive to develop on when you have a target environment of linux compared to something like osx where its almost like linux, but not really at all.
[1] https://www.amazon.com/Cant-Hurt-Me-Master-Your/dp/154451228...