Quick memo to get the keyWindow for all iOS versions until now.
KeyWindow is the “key” window of your entire application. The key window receives keyboard and other non-touch related events. Only one window at a time may be the key window.
#available(iOS 13.0, *) keyword to bypass system check: