This definition from wikipedia generalizes:
In geometry, a solid angle (symbol: Ω) is a measure of the amount of
the field of view from some particular point that a given object
covers. That is, it is a measure of how large the object appears to an
observer looking from that point. The point from which the object is
viewed is called the apex of the solid angle, and the object is said
to subtend its solid angle from that point.
Center a unit sphere at the vertex of the angle and calculate the fraction of the $n-1$-dimensional surface area of the sphere your angle cuts off.
Edit in response to comment.
In three dimensions:
To find the solid angle subtended by a rectangular plate you need the coordinates of the vertices and the coordinates of the point $P$ you're looking from. Project the vertices from $P$ onto the surface of a unit sphere centered at $P$. Joint those vertices to form a quadrilateral on the sphere with edges sections of great circles. Then find the area of that quadrilateral (as a fraction of the area of the sphere). I think this will call for a fair amount of spherical trigonometry. Also see Area of Spherical Polygon
For a weird surface you'll have to find a way to find it's weird projection onto the sphere, and then the area of the projection.