Avoids confusion between dialog:close() and the "close()" hook Partially fix #3304
Attach a file by drag & drop or click to upload