Actually that is part of the Windows 'Snap' function that allows you to snap windows to the top, bottom and sides of the screen. It's very handy when you want to share 2 or more parts of the screen between Windows. That way you don't have to drag and resize Windows manually.
To turn it off go to Settings, System, and then Multitasking. You will see the options to control Snap on the right.