Now raises an exception if sourceView is not in a view hierarchy.
Added documentation.