Checks a Rectangle's properties and throws if they are not in valid ranges.
The rectangle to validate
Online Documentation