Cant change base coordinates from bottom-left to top-left

I’m writing a text editor and traditionally gui applications scale from top left-corner (instead of from bottom-left corner), so that’s why this is important to me.

I want to make it so when i resize window, rendered stuff goes top-left instead of bottom-left.

I’ve only been able to find vague, >9y old answers:

I would really appreciate concrete solutions, thanks.