pub fn synthesize_window_state(
    window: &Window,
    unset_flags: WindowState,
    set_flags: WindowState
)