I found various solutions which are no longer valid, I tried them all to find out that they no longer apply. I will not repeat the deprecated techniques to avoid further confusion on this topic you can find them at stack overflow 18259925, 28165802 . The main idea was to detach the rendered component and attach it inside the widget.
Is there an official way to do this? Did this use case become unsupported?