Make window class use the do_in_context method