qgis-sample-QgsFileDropEdit.py

# coding: utf-8
from qgis.gui import QgsFileDropEdit

file_drop_edit = QgsFileDropEdit()

file_drop_edit.show()