How getContextHandles() API works?

How getContextHandles() API works,how it is able to find the Webview of browser