Rotate a view in viewport

How to rotate a view inside viewport?