How to determine renoise.app().window height?

How to determine renoise.App().window height ?

I want my tool to automatically become (just a little less higher) than the Renoise screen and stay within screen boundaries.

I can not find it here