This issue is related to the operating system, but the exact cause is unclear.
I found a solution:
After pressing the Windows key and using the direction keys (up/down/left/right) to move the window around a few times, then restoring it to its original position, the next time you open the program, it will retain the previous layout.