Extending Communication Composer Behavior

I’d like to extend the behavior of the “new email” dialog, which can be called on document view. The goal would be to execute custom JS on change of the email_template field specifically. However, since the communication composer view isn’t an actual doctype, hooks don’t seem to apply. Is there any way to safely do this without customizing frappe directly?