PS2 and PC monitor

i was thinking is there a way to use a PC monitor as a TV to play video game console like PS2 or XBOX

so like the video and output from PS2 somehow connected to the PC and displayed in the monitor

is there way?