'Create a new widget with a `QuickMenu` at `pos` (in screen
coordinates).'

def create_new(self, pos, search_text=''):

    menu = self.document.quickMenu()
    menu.setFilterFunc(None)
    action = menu.exec_(pos, search_text)
    if action:
        item = action.property('item')
        desc = item.data(QtWidgetRegistry.WIDGET_DESC_ROLE)
        view = self.document.view()
        pos = view.mapToScene(view.mapFromGlobal(pos))
        node = self.document.newNodeHelper(desc, position=(pos.x(), pos.y()))
        self.document.addNode(node)
        return node
