I am looking for a way to draw a border around a window by using CGWindowID. I have looked at examples using CGSPrivate.h (private api) which use NSWindow windowNumber as CGSWindowID. This seems to work for windowNumber got from NSWindow but not for CGWindowIDs which we get using calls from CGWindow.h

Any help is welcome.