function registerEngine(owner, engineName) {
  // ownerHasEngine does registry lookup and caches "miss".
  // With register() we tell registry that module is now available.
  owner.register(
    `engine:${engineName}`,
    require(`${engineName}/engine`).default,
  );
}
Registers an Engine that was recently loaded.

@see https://github.com/ember-engines/ember-engines/blob/8f66b5e3b8089cd53884be49f270cac05f9a3d17/addon/-private/router-ext.js#L166-L182

@param {Owner} owner
@param {String} name