Practical code example of the Upload and the Drag'n'Drop component combined

I’ve been trying to add the Drag’n’Drop component as an additional control to select files for upload in my application.

However I’m a bit perplexed of what to do with the Htm5File object and how to pass that on to the Upload component. Does anyone have or know of a code example where this is done?