### 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.swapchainCount,
			 &ptime,
		};
		if (is_device_extension_enabled(VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME)) {
			present.pNext = &present_time;
		}
	}
#endif
	
	err = fpQueuePresentKHR(present_queue, &present);
	frame_index += 1;
	frame_index %= FRAME_LAG;
	if (err == VK_ERROR_OUT_OF_DATE_KHR) {
		
		
		print_verbose("Vulkan queue submit: Swapchain is out of date, recreating.");
		resize_notify();
	} else if (err == VK_SUBOPTIMAL_KHR) {
		
		
		print_verbose("Vulkan queue submit: Swapchain is suboptimal.");
	} else {
		ERR_FAIL_COND_V_MSG(err, ERR_CANT_CREATE, "Error code: " + String(string_VkResult(err)));
	}
	buffers_prepared = false;
	return OK;
}
void VulkanContext::resize_notify() {
}
VkDevice VulkanContext::get_device() {