How to reproduce:
1. Open/create any project
2. Select camera in the scene view
3. Press "a" to bring up the scene context menu
4. Select "Add Component"
Expected result: No errors are thrown in console
Actual result: 4 errors are thrown in console
Reproducible with: 2023.2.0a18
Errors:
Assertion failed on expression: '!m_InsideContext'
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
GUI Window tried to begin rendering while something else had not finished rendering! Either you have a recursive OnGUI rendering, or the previous OnGUI did not clean up properly.
InvalidOperationException: Stack empty.