This example shows the how to place a MapPanel in another Ext container without creating a map first. See mappanel-div.html for an example that creates the map before creating the map panel.
The js is not minified so it is readable. See mappanel-window.js.