Draw on a Plane surface with varying camera positions

I have the situation as shown in the picture.

I have placed the Plane in the global position (1000, 0.0).

I have an Orthographic camera set up on the Plane I have the Zoom set for this by changing the Size for the camera.

I would like to draw 2D objects on a Plane surface. How to set correctly so that drawing catches the surface?

I try to catch a Plane first, but I think I’m doing something wrong

if (Input.GetMouseButtonDown(0))
        {
            var ray = Camera.main.ScreenPointToRay(Input.mousePosition);
            RaycastHit hit = new RaycastHit();

            if (Physics.Raycast(ray, out hit))
            {
                Debug.Log(hit.collider.gameObject.name);
            }
        }

.

thats exactly how it is done, but if for some reasons is not working try using the ScreenToWorldPoint class