Get widget size

then you can use “GetCachedGeometry()”
( i Updated My answer )