The DataTransfer.getData() method retrieves drag data (as a string) for the specified type.
DataTransfer.getData()
MDN Reference