I'm unable to set the f-stop and depth of field of the viewport using Eevee renderer
You can enable or disable the Depth of Field in Viewport Shading by going into the Viewport Shading settings. Click on the down facing arrow button on the right of all the shading styles in the top right of the screen. The Depth Of Field settings is at the bottom of the settings.