The PID is searched by window instead by process name. (Compatibility with RGN)