Big surprise. Defy normal wisdom and produce something unexpected. A famous magic trick is to pull a rabbit out of a top hat, it always amazes audiences, so this phrase parallels the idea of being utterly surprised. (Compare to Phatoosed, Head over heels or Gaga.)
“He just sits in our meetings and offers useless comments, however, the other day he pulled a rabbit out of the hat with this great idea.”