copy mel file to _yourname / documents / maya / version / scripts_ folder.
call **dockableOutliner_toggleOutliner()** function to toggle outliner.
You can copy the code above mel editor and drag and drop the shelf,
You can assing shortcut the code above