Get game view window current width & height in script

Is there a way to get the game view window size in code?

I have looked through the documentation for UnityEditor, GetWindow<>, and exhausted everything I can think of through the arduous try-everything-in-intellisense discovery method, with no results yet.

When I check Screen.width the width of the current inspector window comes out, not the actual width of the game view.
When I use Screen.currentResolution.width, I get the target build resolution, not the current view size.

Is this possible?

Thanks in advance

Ah. Just discovered it after far too long looking for this:

string[] res = UnityStats.screenRes.Split('x');
Debug.Log(int.Parse(res[0]) + " " + int.Parse(res[1]));

Thats it. it’ll do the trick.