move get_window to gfx