Fixed: issue when initialize with contentRect in CPPlatformWindow