Adds drag and drop functionality to a DOM element.