Thank you for your feedback :) and to paste all the error code, I've tried a lot this script but it's difficult to try all the combination of drag and drop
Anyway, I've fixed the bugs (I forgot to check if exists an instance of the popup), please tell me if you find more