get_window function

Generate a window