This is an attempt to replicate a feature found in WebStorm:
When you are in the end of a block, and the beginning of the block is outside the viewport, it shows you the beginning in a nice overlay.
In Emacs we can show the beginning of function definition at point in the header line.
Another way:
(which-function-mode 1)
(setq-default header-line-format
'((which-func-mode ("" which-func-current " "))
b-narrow-mode-line))