Drag and drop failed while using parts from custom toolbox.

I encountered this issue for the first time, and I don't seem to be able to fix it. When I try to drag an item from my custom toolbox, it won't drop the item and gives an error that says "Drag and drop failed." But I cannot find the reason. Did you encounter the same error?