How to install Mountain Lion on USB disk and boot from USB
You can buy the ML from App store.

Then install it on USB following these instructions from Apple-HT202796.

Then hold the Option key during boot to select the start up disk.

How ever, running from USB disk can be slow.

Alternative->better solution is to create a new partition (size to be determined) and install the ML on it, if you are using the ML frequently.