It is possible to pass events in provideUI
with data attributes. However, there is no way to focus plugin iframe via keyboard. So use of plugins breaks the keyboard focused use of logseq.
Also, binding shortcuts to execute custom plugin actions may be very useful.