Green’s Dictionary of Slang

cook v.2

[Yid. geb a kook, to spy out, to see]

[1900s] (Aus. Und.) to see, to to notice.

In derivatives

kooker (n.)

[1910s] (Aus.) one who conducts a surveillance.