Hi
ardusan
You can switch buttons - Control Panel > Mouse > Buttons, but unless you have specific software (eg) Razer interface, I would suggest just don't move the mouse with left button pressed over a window.
PS - good idea to fill in your system spec