With the way things are at the moment all the windows need to be redrawn since the screen would be cleared each loop.
I think I get what you mean and it would work using an image buffer to draw the windows to. The only problem would be that it wouldent work if you were dragging a window, or shrinking it, over other ones as the ones behind would need to be drawn.