How to reproduce:
1. Open or create a project
2. Open and dock the Profiler window from Window > Analysis > Profiler
3. Make sure that the capture is not set to Live
4. Start recording in the Profiler window either in Play Mode or Edit Mode
Expected result: The graphs are contained in the Profiler window
Actual result: The graphs overlay on top of the module details panel
Reproducible with: 2022.3.4f1, 2022.3.5f1, 2023.2.0a21, 2023.2.0a23
Not reproducible with: 2021.3.28f1, 2022.3.3f1, 2023.1.4f1, 2023.2.0a20
Reproduced on: Windows 10, macOS Ventura 13.4.1 (Intel)