Can I paste a attachment on my custom ReactView, then it can be insert into the md file?

My requirement:

On my custom ReactView,
I’d like to divide a specific area where I can click to focus, then use Cmd + V to paste an image attachment, and have the image saved directly into the Markdown file—just like how it works when pasting an image directly into Obsidian’s native editor.

Is this functionality achievable?