How to reproduce:
1. Open the attached project “4425_CustomWindowBug.zip“
2. Open the custom Window (Tools > Cronus > State Machine > State Machine)
3. Close and reopen Unity Editor
Expected result: Custom Window in the same position as before closing the Editor
Actual result: Custom Window position changed
Reproducible with: 2020.3.37f1, 2021.3.7f1, 2022.1.11f1, 2022.2.0b3, 2023.1.0a4
Reproduced on: macOS 12.3.1 (Intel)
Note: If the custom Window is docked before closing and reopening the Editor, it opens undocked and can’t be docked back in the Editor, also then the custom Window is only accessible if the Editor is minimized