Replace all functions (GetWidgetManager, Open, Close layers etc.) with the functions of the component you want to use.
If you want to find the functions you want to replace and delete, you can rename it and use unreals search function to find it. (See Image)(You have to save all before finding it, otherwise it will not find the new name)