Depth of Field
This is a very simple expression that is used to tie a camera's focal distance to the position of an object (the ghost in this case). As the ghost moves towards and away from the camera, the other object in the comp goes in and out of focus in a depth-of-field affect.
Apply the following expression to the camera's Focus Distance property:
length(position,this_comp.layer("ghost.ai").position)
Substitute your layer's name for "ghost.ai"