windows handling,functions to move windows from and to monitor and
destroy window.