Castle is doing some research at home in this scene. It's courtesy of the episode "The Final Nail."
Added:

Castle Season 3 Episode 15 Quotes

You have a great talent, no one had said anything like that to me before.

Castle

Shut the front door.

Castle