This thought came up while working on third party (PHP) bindings to WebDriver via the JSONWireProtocol. If we execute window maximize via WebDriver, how do you verify it is actually maximized (beyond just checking that window size is greater than original, assuming original was not maximized). And perhaps to do that in a language agnostic way, with minimal to no reliance on 3rd party tools/libraries.
For Java, .NET, Python, and Ruby and Perl, you could likely use desktop GUI libraries to get the screen resolution and compare the maximized browser window size to that. But that's not a clean solution, and for PHP, there's not really much desktop library support since it's generally a web/server based language, so if going unclean route, would probably have to make shell call to some third party tool to get screen resolution.