LPS-39209 Files that fail to upload are still draggable in document l…

Hey @marclundgren,

The issues you pushed this back to me for are fixed in that other pull I sent you for LPS-39558. Your changes were actually giving me a syntax error, so that's what my source formatting is for. 

One question I have for you is lines 217-219. What's the purpose of setting the window.appViewMove and window.instance in those lines? Just curious.