Qt5: don't create Nitpicker views for desktop widgets

Fixes #1163.
Qt5: handle dialog windows as top-level windows

Fixes #1164.