To understand how dynamically loading a Silverlight control works read: Using the WebClient to Download Content On-Demand
Most of the code came from: http://silverlight.net/forums/t/14941.aspx
The description of the resizable window is at: SilverlightWindow