It's called leaning, try it once.
Do you mean with or without hacks? With hacks it's easiest just to use chams, without, you have to position yourself touching the wall and turn till you're at the right angle to see through it on the edge of your screen (works best with widescreen monitors).