Add API to get a view's client rects

Closes #9419.