If Windows were open sourced today, would Windows users be safe? No. Parts of Windows have such bad design that they'll
never be safe. Big example: the silly "attributes" that don't include "executable". Having a file name determine executability is prone to human errors, especially since a definitive list of "extensions" that make a file executable is not forthcoming.
But if you open-sourced it, someone would eventually provide you with that list of "extensions".