Problem/Motivation
https://www.drupal.org/project/drupal/issues/2158943 looks like a herculean task. Therefore, it is necessary to break it down into small sub-tasks that will bring us closer to the final result.
Proposed resolution
Remove jQuery Event from dialog events events. And pass the customEvent instead.
API changes
$(window).on('dialog:EVENTTYPE') still BC but their listeners will receive deprecation messages.
$(window).on('dialog:beforecreate') became window.addEventListener('dialogBeforecreate')
Deprecation script checking if old `dialog:beforecreate` presented in $._data(window, 'events');
If presented we trigger old Event and deprecation message.