An example that is a bit like what you are trying to do is the form for editing drag-drop markers, or drag-drop onto image questions. They uses a standard file-picker, but then, once an image has been uploaded, they start showing a preview using JavaScript.
General developer forum
defining a filepicker in an AMD module
This discussion has been locked so you can no longer reply to it.