### 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
register_requested_device_extension(VK_KHR_MAINTENANCE_2_EXTENSION_NAME, false);
	
	
	
	
	
	
	
	
	
	
	if (VK_KHR_incremental_present_enabled) {
		register_requested_device_extension(VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME, false);
	}
	if (VK_GOOGLE_display_timing_enabled) {
		register_requested_device_extension(VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME, false);
	}
	
	uint32_t device_extension_count = 0;
	VkResult err = vkEnumerateDeviceExtensionProperties(gpu, nullptr, &device_extension_count, nullptr);
	ERR_FAIL_COND_V(err, ERR_CANT_CREATE);
	ERR_FAIL_COND_V_MSG(device_extension_count == 0, ERR_CANT_CREATE,
			"vkEnumerateDeviceExtensionProperties failed to find any extensions\n\n"
			"Do you have a compatible Vulkan installable client driver (ICD) installed?\n"
			"vkCreateInstance Failure");
	VkExtensionProperties *device_extensions = (VkExtensionProperties *)malloc(sizeof(VkExtensionProperties) * device_extension_count);
	err = vkEnumerateDeviceExtensionProperties(gpu, nullptr, &device_extension_count, device_extensions);
	if (err) {
		free(device_extensions);
		ERR_FAIL_V(ERR_CANT_CREATE);