Use an enum for window hints and add comprehensive documentation