CustomWebView : An extended form of Web Viewer

Can I view a PDF or DOCX file using CustomWebView?
I have used the blocks below to open and view images, but it does not work with PDFs and DOCX files.

See the solution below if it works for you Choose it to default :

It would great to see an url at OnNewWindowRequest.This would make working with external links much easier (for example, open them in a browser).