Using custom components in my Window or other class

http://vaadin.com/book/-/page/application.child-windows.html#figure.window.modal

This example states us to use the custom component in our Application class… How can i add my Custom Component in my Window or other classes.