Do you have "Remember window locations based on monitor connection" checked in Windows 11 display settings?
I haven't had that problem in a long time. They fixed it in a Windows 10 preview build years ago, and that feature continued over into 11. (Windows has issues, but this is one they fixed.)