Create custom tools without viewer

Hi!

Is it possible to create custom tools like described here:
https://www.pdftron.com/documentation/web/guides/annotation/custom-annotations/
without a WebViewer instance?
I am looking for an equivalent to instance.UI.registerTool() on DocumentViewer.

Cheers!