Confluence EventListener Plugin to Create Dialog

Hi, I’m pretty new to Confluence (server) plugin development and I’m trying to create something which will listen to page update/create events and react with a warning dialog popup on the page (Dialog2 - AUI Documentation). This would only happen for a very small subset of those events (only those where certain key words were detected in the page body), so I’m not worried about spamming our general users after every page edit. Is it possible for an event listener to create such a dialog? I’ve seen similar questions (e.g. https://community.atlassian.com/t5/Answers-Developer-Questions/JIRA-plugin-notification-banner-pop-up/qaq-p/505155) and some responses indicate that event listeners don’t have access to UI elements like that. Before I go too far down the development path I want to make sure that what I’m trying to do can actually be done. Thanks for any help!