How to use Macro Configuration with Custom UI apps in Forge

Actually, the main idea is to add macro configuration to an existing custom ui macro. The plan is to use the data received from the configuration to filter the data in the custom ui macro. So I want to do exactly this https://developer.atlassian.com/platform/forge/add-configuration-to-a-macro/ but with custom ui macro. Correct me if I am wrong but at the moment, I noticed that I can only achieve this solution when I use UI kit macro. This was the reason behind my first question of transferring configuration data.