Just like in the previous PR #33230, we need to properly set up modal
windows to make them work as expected.
Before this PR, when you opened an "Open File" or "Save File" dialog,
clicking the main window would steal focus from the modal, even though
the main window wasn’t actually interactive.
With this PR, clicking the main window while a modal is open does
nothing — as it should — until the modal is closed.
#### Before
https://github.com/user-attachments/assets/9c6bdff0-1c46-49c1-a5ff-751c52c7d613
#### After
https://github.com/user-attachments/assets/8776bd28-85ff-4f32-8390-bcf5b4eec1fe
Release Notes:
- N/A
272fc672af张小白 committed on 6/23/2025, 11:02:00 AM· committed by GitHubparente68b95c