ArkViewer currently has the Part::widget() as parent. This prevents the main window to gain focus if one or more ArkViewer dialogs are open.
Removing the parent fixes the issue, but we need to set the Qt::WA_DeleteOnClose attribute, otherwise the widget will not be deleted causing leaks.
(fix meant for Applications/16.04)