Bind text property to window title

hello i want bind a text property from a component to the title name of a window. i’m creating my own component as title bar so if i can bind it thru and expression i could just inset the component on a window and then it would update the name automatically.

anyone has does this?