RS Wish: BrowseForMaterial method

Is there a way I could have user browse from material from RhinoScript?
Looked into RDK scripting but can only see a way to display material editor or get currently selected slot in the editor.

I need to be able to have a modal dialog with materials, ideally with an option to create a new one from there.