Add hide window function.