fn sticky_exit_callback<T, F>(
    evt: Event<'_, T>,
    target: &EventLoopWindowTarget<T>,
    control_flow: &mut ControlFlow,
    callback: &mut F
)where
    F: FnMut(Event<'_, T>, &EventLoopWindowTarget<T>, &mut ControlFlow),