def METHOD_NAME(self, event: QDragMoveEvent):
    target = self.itemAt(event.pos())
    if isinstance(target, FolderWidgetItem):
        QTreeWidget.METHOD_NAME(self, event)
    else:
        event.ignore()