src/vs/workbench/api/common/extHostTypeConverters.ts/toDataTransferItem
	export function toDataTransferItem(item: extHostProtocol.DataTransferItemDTO, resolveFileData: () => Promise<Uint8Array>): types.DataTransferItem {
		const file = item.fileData;
		if (file) {
			return new class extends types.DataTransferItem {
				override asFile(): vscode.DataTransferFile {
					return {
						name: file.name,
						uri: URI.revive(file.uri),
						data: once(() => resolveFileData()),
					};
				}
			}('');
		} else {
			return new types.DataTransferItem(item.asString);
		}
	}