Show tooltip over a component which is outside root

I have a component outside root (it is a widget icon). I have it’s Id. I want to show a tooltip over the widget icon. I am using antd library for designing. Please share how we can achieve this. Thanks.

I tried, ReactDOM.createPortal() – and antd tooltip getPopupContainer() prop – didn’t worked for me.