Use the composition depth buffer in order to create a depth of field. This modifier uses the focus distance of the
Camera
A camera filming 3D content
Read More
You can vizualize the depth of field with colors by checking this option:
Go check
Legacy Blur
Blur the image
Read More
part of the documentation for further details about the parameters.