Replicate Timeline in Animation window

Is there a way that to replicate the animation window’s timeline with the tickmarks and how it scales with the resizing of the window?

Just need point in the right direction, I kinda of know how to do the scaling, but the timeline itself where the tickmarks get drawn in between and ensuring the numbers reduce or increase seems tricky. Thanks for any help.

Maybe you should look at this How To in the manual :