This project is for reproducing this issue.
Please run it in Xcode, and grant Accessibility API permission to the app WindowTest.
You can first try loading each windows one by one to see if a window can cause the issue.
Once a window is loaded, it will be at the bottom left corner of the screen.