To use the dot product you need a direction vector and the position of the other object, then you get the substraction (vector from object A to object B, or BA for short) and get the dot product of the BA vector to the direction vector. If this value is greater than 0 then the B object is facing towards the A object. You can see that on the VectorMath section of Godot's Documentation.
You can always use an Area2D as the view area for the object.