Add a metabox to select widget


Before i ask my question, i know there is a solution in the form of a plugin from WPMUDEV available for selecting sidebars.

But i want a more integrated solution into my theme framework. I want the ability to have a meta box per page which will select an available widget to display (in this case a sidebar)

Does you know of any tutorials or can you help with this? I know how to create sidebars, but i would like a dynamic approach where users can select the sidebar that they want to use on a per page basis