When the window becomes active
Represents an event function that is called when the window is activated.
Note that this event can also occur if the window is already active (there is no guarantee that it will occur completely onActivate → onDeactivate → onActivate → ……).