If the item is a file, the DataTransferItem.getAsFile() method returns the drag data item's File object.
DataTransferItem.getAsFile()
MDN Reference