You can do your computation in a separate thread, but all GUI activity has to take place in the main application thread. Unfortunately, because it looks like dragging the window freezes the main event loop, none of the progress signals sent from the thread will be processed either and your GUI will stay frozen.

Moving windows around on screen is a window manager (ie. Windows Explorer) function and is probably out of the control of Qt. Wiser heads may know better.