def METHOD_NAME(self, x, y, d):
    """
    Handles drag/dropping files/text or a bitmap
    """
    if self.GetData():
        df = self.do.GetReceivedFormat().GetType()
        if df in [wx.DF_UNICODETEXT, wx.DF_TEXT]:
            text = self.textdo.GetText()
            self.editor.ui.protoPaletteUI.tree.ChangeHierarchy(text, x, y)
        elif df == wx.DF_FILENAME:
            for name in self.filedo.GetFilenames():
                self.editor.ui.protoPaletteUI.AquireFile(name)
        elif df == wx.DF_BITMAP:
            bmp = self.bmpdo.GetBitmap()
    return d  # you must return this