I use a rough formula for guesstimating hyperfocal distance (HFD) and depth of field (DoF)... I think it could be used here to adequately approximate the camera view.
But first you have to consider the type of camera you are simulating. I.e. if it is an SLR with autofocus the aperture typically remains set at the maximum; and you cannot see the DoF of the set aperture unless you activate a DoF preview button/function. If it is a mirrorless camera, a DSLR in live view with exposure preview active, or an old school manual focus/manual aperture camera, then the selected/set aperture will change the viewed image by default. I.e. in the first case you only need to approximate the DoF for the len's max aperture (unless also programing a preview function).
The formula I use to SWAG hyperfocal distance and DoF (in feet) is: HFD=.1xFL(.1xFL). For example, a 50mm lens would be .1x50(.1x50) = 5x5 = 25ft HFD (a little easier; take the first number of the FL and square it; if the FL is 35mm use 3x4 instead of 3x3).
The HFD is the subject distance (focus setting) where the DoF exists from 50% of the HFD out to infinity. In this example, if the 50mm lens is set to focus at the 25ft HFD the DoF would then extend from 12ft to infinity.
The SWAG formula is based upon a FF camera with a lens at f/11, a 1.5x APS camera set to f/16, or an M4/3 camera set to f/22. If you halve the aperture setting (f#) the HFD ~ doubles... I.e. 50mm on FF @ f/11= 25ft HFD; at f/5.6 = 50ft HFD (as I said, this is a SWAG... the actual HFD numbers are 24.3/48.5ft).
Then, if the lens is instead focused at 50% of the HFD, the DoF is equal to approximately half of the HFD number. I.e. 50mm on FF @ f/11 focused at 12.5ft the DoF = approx 12.5ft (**15.5ft actual). In this case the DoF exists 25% in front, and 75% behind the point of focus.
And then at very short distances the DoF exists as 50% in front of, and behind, the point of focus.
** at shorter FL's the error of the SWAG is greater.