allows a window to unmax by resizing.