The Classic UI uses dialogs build using the ExtJS framework , where as Touch UI uses dialogs build using Coral UI.
It is recommended to convert the dialog first (you can use dialog-conversion tool) - it will handle most common uses cases (may not handle complex custom dialogs)
AEM no longer maintain...