### 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
} else if (err == VK_SUBOPTIMAL_KHR) {
				
				
				print_verbose("Vulkan: Early suboptimal swapchain, recreating.");
				_update_swap_chain(w);
			} else if (err != VK_SUCCESS) {
				ERR_BREAK_MSG(err != VK_SUCCESS, "Vulkan: Did not create swapchain successfully. Error code: " + String(string_VkResult(err)));
			} else {
				w->semaphore_acquired = true;
			}
		} while (err != VK_SUCCESS);
	}
	buffers_prepared = true;
	return OK;
}
Error VulkanContext::swap_buffers() {
	if (!queues_initialized) {
		return OK;
	}
	
	VkResult err;
#if 0
	if (is_device_extension_enabled(VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME)) {
		
		
		DemoUpdateTargetIPD(demo);