Repository: godot
Issue: subviewport image corruption with XR 
Labels: bug,topic:rendering,topic:xr,topic:3d

### Godot version

4.0.1

### System information

Linux Debian 11 AMD Radeon RX5700 Monado Vulkan 

### Issue description

I am building an project with a flat screen and a VR headset, where the screen display a 2D control board with an embedded realtime view of the VR.
I can't get the 2D viewport container to display correctly the VR view, the image is corrupted, and sometimes it also corrupt the VR viewport with flikkering garbage
(this works with godot 3.5 and OpenVR ... )
I don't see any error message 
( I hope I'm not doing something wrong, please tell me ;) )

```
Running: /home/xxxxxx/godot4/Godot_v4.0.1-stable_linux.x86_64 --path /home/xxxxxx/godot4/projects/xrviewport --remote-debug tcp://127.0.0.1:6007 --editor-pid 42259 --position 0,13 res://main.tscn
Godot Engine v4.0.1.stable.official.cacf49999 - https://godotengine.org
LOG in xrCreateInstance: Instance created
	createInfo->applicationInfo.applicationName: XR-Viewport
	createInfo->applicationInfo.applicationVersion: 1
	createInfo->applicationInfo.engineName: Godot Game Engine
	createInfo->applicationInfo.engineVersion: 40001
	appinfo.detected.engine.name: (null)
	appinfo.detected.engine.version: 0.0.0
	quirks.disable_vulkan_format_depth_stencil: false
LOG in xrCreateInstance: Selected devices
	Head: 'HTC Vive (libsurvive)'
	Left: '<none>'
	Right: '<none>'
	Hand-Tracking Left: '<none>'
	Hand-Tracking Right: '<none>'
OpenXR: Running on OpenXR runtime:  Monado(XRT) by Collabora et al 'v21.0.0-2922-g2a3157b0'   21.0.0
OpenXR: XrGraphicsRequirementsVulkan2KHR:
 - minApiVersionSupported:  1.0.0
 - maxApiVersionSupported:  1023.1023.1023
LOG in xrCreateVulkanInstanceKHR: Creation of VkInstance:
	result: VK_SUCCESS
	vulkanInstance: 0x806d6d0
	extensions:
		VK_KHR_external_fence_capabilities
		VK_KHR_external_memory_capabilities
		VK_KHR_external_semaphore_capabilities
		VK_KHR_get_physical_device_properties2
		VK_KHR_surface
		VK_KHR_xlib_surface
Vulkan API 1.2.145 - Forward Mobile - Using Vulkan Device #0: AMD - AMD RADV NAVI10 (ACO)
LOG in xrGetVulkanGraphicsDeviceKHR: Creation of VkDevice:
	result: VK_SUCCESS
	vulkanDevice: 0x8117240
	vulkanInstance: 0x806d6d0
	external_fence_fd: true
	external_semaphore_fd: true
	timelineSemaphore: true
	extensions:
		VK_KHR_dedicated_allocation
		VK_KHR_external_fence
		VK_KHR_external_memory
		VK_KHR_external_semaphore
		VK_KHR_get_memory_requirements2
		VK_KHR_external_memory_fd
		VK_KHR_16bit_storage
		VK_KHR_create_renderpass2
		VK_KHR_image_format_list
		VK_KHR_incremental_present
		VK_KHR_maintenance2
		VK_KHR_shader_float16_int8
		VK_KHR_storage_buffer_storage_class
		VK_KHR_swapchain
		VK_KHR_multiview
		VK_KHR_external_semaphore_fd
		VK_KHR_external_fence_fd
		VK_KHR_timeline_semaphore
 
OpenXR initialised successfully
```


![Screenshot from 2023-03-22 17-07-52](https://user-images.githubusercontent.com/6155067/226973816-23c48a19-c55d-4922-a77b-9b2ca9751f35.png)


### Steps to reproduce

just start the project here

### Minimal reproduction project


[xrviewport.zip](https://github.com/godotengine/godot/files/11042489/xrviewport.zip)