How do I switch to a mailbox to view its contents?

Just double-click on its name in the mailbox panel window. The mailbox will open and a list of all the messages stored in that mailbox will be displayed.