Reproduction steps:
1. Open the attached “TestEditor.zip” project
2. Open the “Assets/Scenes/TestEditorFreeze.unity” Scene
3. Enter the Play Mode
4. Switch to the Scene view
5. In the Scene view select any “Cube” GameObject
Expected result: GameObject is selected
Actual result: Editor freezes
Reproducible with: 2021.3.34f1, 2022.3.19f1, 2023.2.0a1
Not reproducible with: 2023.3.0b4
Fixed in: 2023.2.0a2
Reproducible on: Windows 11
Not reproducible on: No other environment tested