Show dialogs even if QQuickWindow is not toplevel
QQuickWindow migth be embedded in a QWindow but should
still show popups. Requests to show were rejected because not
the actual top-level window was set as parent.
It can also no longer be assumed that this top level parent
is a QuickWindow.
[ChangeLog][Dialogs] Fix opening dialogs when embedded using createWindowContainer
Fixes: QTBUG-151172
Pick-to: 6.12
Change-Id: Ie57a26a3c28770fbbbbbfa0b13f5ea8278ec4c93
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>