Drag and drop in tabs

Trying to apply drag and drop for tabs but it doesn’t work. I am able to drag tabs but not drop. Tabs are set as dropTarget and each tab as dragSource. Any idea how to fix this? The idea is to move tabs within each other.