Import app based on rest API response

Hello guys,
We have the following scenario: we have a BE service returning an app name and some props to be shown to the customer.

The idea is exactly the same as is implemented in the checkoutv6, where the connector can return the appName and it will be used to render the app itself in a DIV.

The main issue we have is that we can’t fully understand how it’s done.
We are checking the render-runtime component, which seems to be the correct place to start, but we’re having issues understanding which of the exposed elements we should use and how the props should be passed.
The behaviour we find promising is here:

renderExtension = (
extensionName: string,
destination: HTMLElement,
props = {}
)

Do you have any suggestion about how to proceed ?

Thanks
Marco