Hello, thank you for reaching out to Microsoft Q&A.
Please try disabling snap layouts in the Windows settings menu to see if it resolves the issue.
- Navigate to Start > Settings > System > Multitasking.
- Turn off the toggle for Snap Windows.
You can also go to Control Panel > Ease of Access > Ease of Access Center > Make the Mouse easier to Use > Uncheck 'Prevent Windows from being automatically arranged when moved to the edge of the screen' > Click Apply and Ok.
Let me know if you still need more help.