You would have to reproduce the object model used by Drafts 5 and keep it up to date as Greg regularly enhances it. As a result I think the effort of doing this fully is too great to be practical for most people to try and reproduce.
Is there a particular reason for wanting to do this? Maybe there’s a workaround?