def METHOD_NAME(self, indexes):
    rows = {str(index.row()) for index in indexes}
    data = ",".join(rows)
    mime_data = QMimeData()
    mime_data.setData(MIME_INDEXES, QByteArray(data.encode()))
    return mime_data