How to programmatically open the option modal and listen to changes?
It turned out to be possible:

CRM.loadForm('/some/url')
  .on('crmFormSuccess', function (event, data) {
    // do smth
});


Ref: https://docs.civicrm.org/dev/en/latest/framework/ajax/