Once pinned, right-click the Gmail taskbar icon to access jump lists (e.g., "Compose new email") if your browser supports it.
You can also use the browser's built-in feature to pin a website to the taskbar or dock: add gmail to taskbar