Based on the Qt5 version of qmlgloverlay. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3845>