How To Add Component In The Sub Window ??

How To Add Component In The Sub Window??

Scenario

I have one main window in that when user click on open window at that time my new window is open in self and in my browser address bar URL is change to my sub window name.
In that i have on button open component

how can i achieve this in vaadin 6.7.9