Getting All viewport cooridnates from world

I want to know how to get all of viewport or screen coordinates from the world.

So If i have xy coordinates of screen ([0, 500],[0,500]), I want to get matching all xyz world coordinates.

and screenshot of that

That would be:

343587-screenshot-1.jpg

That doesn’t work what i intended to