you can create content panes programmatically as in this accordion container example. (AccordionPane is deprecate, just use ContentPane instead)
var accordion = new AccordionContainer({
style: "width: 200px; height: 100%;"
}).placeAt(document.body);
var content = new ContentPane({
title: "content1",
style:"height:100px"
});
accordion.addChild(content);
accordion.startup();
if you need to use regions, bordercontainer's design property gives you that as in this example. you can put an accordioncontainer in one of the content panes there...