Clean up drawing of window borders/resizing.