Steps to reproduce:
- Create and open a new project
- Focus on the Game view (or any other window that is docked next to Scene view)
- Create and open a new UXML file
- In Project Settings -> UI Toolkit', enable the "In-scene UI Authoring"
- Instantiate the UXML in the scene
- Expand the Panel Renderer and select the UXML GameObject
- In Inspector, press on "Open In Context" (or the arrow next to the GameObject)
- Press the back arrow in the Hierarchy or the "Scenes" breadcrumb in the UI Viewport
- Observe the Editor
Actual results: The Scene view is focused
Expected results: The previously focused window is focused
Reproducible with versions: 6000.6.0b2, 6000.7.0a2
Can’t test with versions: 6000.0.78f1, 6000.3.19f1, 6000.5.3f1, 6000.6.0a7 (No In Context editing)
Tested on (OS): Windows 11 Pro (25H2)