TabStackedWidget: Emit signal on change of pin state.
MainApplication: The getWindow() try to return the current active or last activated window