How to reproduce:
1. Create a new Unity project
2. In the Project window, right-click -> Create -> UI Toolkit -> UI Document
3. Open the UI Document and add any Visual Element to make the Asset dirty
4. In the Project window, open the same UI Document again
5. Click "Cancel" when asked (the prompt might appear twice)
6. Observe the results
Expected results: Nothing is opened
Actual results: UXML file is opened in the code editor
Reproducible with: 6000.0.40f1, 6000.0.43f1, 6000.1.0b11, 6000.2.0a7
Not reproducible with: 2022.3.60f1, 6000.0.39f1
Reproducible on: macOS Sequoia 15.3 (M1)
Not reproducible on: No other environment tested