Viewer: Support for drag and drop to set the file attribute.

If a user drags and drops an file object on the viewer, the viewer updates accordingly and the file object is moved to its previous position.