### Godot version

v4.0.3.stable.official [5222a99f5]

### System information

Windows 11, AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx     2.10 GHz

### Issue description

  The editor crashes when it is minimised if it isn't the foreground window, eg. via Windows key + M.  This didn't occur in 4.0.2, but is now occurring in 4.0.3. I'll just mention that /interface/editor/save_on_focus_loss is false because another issue mentions something like this but with that property set to true.

### Steps to reproduce

N/A

### Minimal reproduction project

N/A
present.pNext = &regions;
	}
#endif
#if 0
	if (is_device_extension_enabled(VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME)) {
		VkPresentTimeGOOGLE ptime;
		if (prev_desired_present_time == 0) {
			
			
			
			
			
			
			
			uint64_t curtime = getTimeInNanoseconds();
			if (curtime == 0) {
				
				
				ptime.desiredPresentTime = 0;
			} else {
				ptime.desiredPresentTime = curtime + (target_IPD >> 1);
			}
		} else {
			ptime.desiredPresentTime = (prev_desired_present_time + target_IPD);
		}
		ptime.presentID = next_present_id++;
		prev_desired_present_time = ptime.desiredPresentTime;
		VkPresentTimesInfoGOOGLE present_time = {
			 VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE,
			 present.pNext,