Steps to reproduce:
1. Open attached project "ImageBug.zip" and scene "SampleScene"
2. In Project window, select the "Sample1" and "Sample2" Sprite Assets
3. Drag and drop them into the Hierarchy window
4. Cancel/Close the Create New Animation window
5. Observe Console window
Expected result: No errors
Actual result: "OnGUIDepth changed: was 2 is 1. Event type was 13" error
Reproducible with: 2023.2.0a12, 2023.2.0b8, 2023.3.0a4
Not reproducible with: 2021.3.30f1, 2022.3.9f1, 2023.1.12f1, 2023.2.0a11
Reproduced on: Windows 10