Hi everyone.
I don`t know what first thing I need to share with net-people. But I really know that it doesn`t matter. I will write everything that I want to write (Omg! I see some tautology here like salt is salty). I say too much… Let`s go.
How to compute height of status/notification bar, further just status bar, in Android?
Why do I want to calculate this value? Welp (some slang ヽ(`◇´)/)… Just because I want to know an absolute right position from the top of screen. See.. I say from the top. Everything is clear when dealing with bottom side.
When we try to locate some window (for e.g. a simple dialog) at some absolute position we will do something like this:

As you can see we try to set some absolute Y position, but here lies the problem. This position isn`t located relative to top of our device screen. It`s located slightly below. And we need to decrease Y position by height of our status bar! OK. Now then!
NOTE: On some devices (for e.g. Sony Tablet, Xperia Tablet Z) there is no status bar at top. It`s presented at bottom.
See below. Some piece of code will clarify everything.

NOTE: It`s more preferred to use window of Activity than window of dialog for instance. Otherwise, these calculations can be buggy.
This code was tested on dozen devices, but .. as it often happens. Everything is possible ʕ⁎̯͡⁎ʔ༄.
The night came ヾ (✿>﹏ ⊙〃)ノ. I won`t always write everything in great detail. Don`t get angry. Bye-bye ♪ヽ( ⌒o⌒)人(⌒-⌒ )ヽ♪ !
Email me when \n Malyshev Yegor \n publishes or recommends stories