Steps to reproduce:
- Open the attached project
- Set the Profiler to Edit mode to capture some data
- Select the Physics (2D) module in the Profiler window to view its live stats
- Maximise another Editor window
- Exit maximised state
- Observe the Console window
Actual results: No errors or warnings are thrown if another window is maximised
Expected results: "InvalidOperationException: Cannot modify VisualElement hierarchy during layout calculation" error is thrown every time another window is maximised while Physics 2D module is selected in the Profiler window
Reproducible with versions: 6000.5.0a5, 6000.6.1f1, 6000.7.0a6
Not reproducible with versions: 6000.0.84f1, 6000.3.24f1, 6000.5.0a4
Tested on (OS): macOS 26.6.2