How to reproduce:
1. Open the attached "IN-137804_unity-imguicontainer-beginarea-bug.zip" project
2. At the top of the Editor window, go to "Foo -> Window"
3. In the opened "EditorFooWindow", click on the "Hello World" button
4. Observe the Console
Actual result: The button is not clicked and the console does not log anything
Expected result: The button is clicked and the console logs "Hi!"
Reproducible with: 2023.1.0a1, 6000.0.72f1, 6000.3.12f1, 6000.4.1f1, 6000.5.0b2, 6000.6.0a2
Reproducible on: Windows 11
Not reproducible on: No other environments tested