This function retrieves the work area rectangle of the specified monitor. Related to #920. Closes #989.