Fix errors when creating windows on Windows
Fix errors when creating windows on Windows

Detecting the case where WM_SIZE is received during the window creation.
There's no need to call window_resize on the Vulkan context.

Also creating a WindowData entry early enough to avoid storing a
separate WindowData wrongly associated to INVALID_WINDOW_ID.

Fixes #39199

akien-mga/godot,guilhermefelipecgs/godot,MarianoGnu/godot,sanikoyes/godot,MarianoGnu/godot,godotengine/godot,Shockblast/godot,Zylann/godot,BastiaanOlij/godot,sanikoyes/godot,Faless/godot,vnen/godot,vnen/godot,pkowal1982/godot,Zylann/godot,godotengine/godot,akien-mga/godot,honix/godot,guilhermefelipecgs/godot,firefly2442/godot,Faless/godot,vnen/godot,Faless/godot,ZuBsPaCe/godot,MarianoGnu/godot,firefly2442/godot,DmitriySalnikov/godot,josempans/godot,ZuBsPaCe/godot,pkowal1982/godot,firefly2442/godot,akien-mga/godot,vkbsb/godot,godotengine/godot,vkbsb/godot,pkowal1982/godot,josempans/godot,DmitriySalnikov/godot,MarianoGnu/godot,guilhermefelipecgs/godot,josempans/godot,guilhermefelipecgs/godot,akien-mga/godot,Faless/godot,honix/godot,sanikoyes/godot,firefly2442/godot,Paulloz/godot,pkowal1982/godot,godotengine/godot,vkbsb/godot,pkowal1982/godot,vkbsb/godot,godotengine/godot,guilhermefelipecgs/godot,Shockblast/godot,Paulloz/godot,pkowal1982/godot,vnen/godot,MarianoGnu/godot,Zylann/godot,Faless/godot,vnen/godot,Shockblast/godot,pkowal1982/godot,honix/godot,vnen/godot,firefly2442/godot,Shockblast/godot,Valentactive/godot,Faless/godot,akien-mga/godot,guilhermefelipecgs/godot,firefly2442/godot,akien-mga/godot,Shockblast/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,Faless/godot,sanikoyes/godot,pkowal1982/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,vkbsb/godot,Valentactive/godot,Zylann/godot,Paulloz/godot,firefly2442/godot,vnen/godot,josempans/godot,Valentactive/godot,Zylann/godot,ZuBsPaCe/godot,Paulloz/godot,honix/godot,BastiaanOlij/godot,Valentactive/godot,Shockblast/godot,ZuBsPaCe/godot,sanikoyes/godot,Valentactive/godot,firefly2442/godot,guilhermefelipecgs/godot,godotengine/godot,godotengine/godot,vkbsb/godot,Paulloz/godot,BastiaanOlij/godot,MarianoGnu/godot,sanikoyes/godot,Zylann/godot,Faless/godot,Valentactive/godot,DmitriySalnikov/godot,sanikoyes/godot,ZuBsPaCe/godot,godotengine/godot,vkbsb/godot,DmitriySalnikov/godot,Valentactive/godot,MarianoGnu/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,josempans/godot,BastiaanOlij/godot,vkbsb/godot,Paulloz/godot,akien-mga/godot,akien-mga/godot,Paulloz/godot,honix/godot,BastiaanOlij/godot,josempans/godot,guilhermefelipecgs/godot,josempans/godot,Shockblast/godot,honix/godot,sanikoyes/godot,BastiaanOlij/godot,BastiaanOlij/godot,Zylann/godot,BastiaanOlij/godot,Shockblast/godot,josempans/godot,Zylann/godot,vnen/godot,Valentactive/godot,MarianoGnu/godot