The DataTransfer.setData() method sets the drag operation's drag data to the specified data and type.
DataTransfer.setData()
MDN Reference