Vector Length Limitations

Yeah this is what i am after. I need a point in between my character and the ‘Ghost’ to set as the limits. Then, If the ghost goes beyond those limits, then it will just stay there at that maximum limit (even if i move my mouse around the outside of that limit, the will move, but NOT outside those limits).
… if that makes sense