A colleague was shocked when a senior doctor launched into a rant praising Adolf Hitler, a medical tribunal has been told.