Can I manually create and manage and Editor?

I’m creating a plugin which involves typing markdown into draggable and linkable cards.

I’m using a custom file format so can’t access the MarkdownView directly. Is it possible to manually instantiate and attach a/many MarkdownView to the DOM of a view where I choose, and provide it markdown to display/edit?

I’ve tried going down the route of manually using CodeMirror but that’s going to be too problematic.