The toolWindow example plugin from Intellij
From  this page:
http://confluence.jetbrains.com/display/IDEADEV/Creation+of+Tool+Windows

I did not write this code and take no credit!