Add focused window reading to osx lib