See this community article:Creating a CQ widget that supports image drag
and drop It talks about creating a CQ Dialog that lets a user select an
image during design time. The component is used by the CQ parsys system,
supports a Dialog with multiple tabs, and enables the functionality
offered by the Content Finder (for example, drag-and-drop).Understanding
this will help you in this use case.