In this video, the process of creating a drag and swap item system is explained. I recommend watching the entire series, as it does a great job of breaking down how to build a complete inventory system, or you can use it as a reference for what you’ve already created.
This documentation can also help you better understand how the drag-and-drop system works in Unreal.
I think with this, you should be able to achieve what you were looking for.