Hello, Alexsimgph.
Thank you for using Apple Support Communities.
From what I understand is that when you waken your Mac from sleep mode all of the windows left are placed in the right hand corner. I'd like to help you with this. Try first resetting your NVRAM:
Reset NVRAM or PRAM on your Mac
If that doesn't help, see if this occurs in a test user account and safe mode:
How to test an issue in another user account on your Mac
Use safe mode to isolate issues with your Mac
"If an issue doesn't happen in safe mode
If an issue doesn't happen when your Mac is started in safe mode, try restarting without pressing any keys.
If the issue comes back, you might have incompatible login items.
If the issue doesn't come back, it was probably caused by a cache or directory issue with your startup disk, which safe mode fixed".
Let me know if this helps.
Cheers!