Hi @Alexander Z ,
Welcome!
Not know much about add-in develop, however, I knew an existed add-in which could help achieve the similar goal. For your reference: Outlook File Drag. (Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)
Hope this can be helpful.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.