In searching for answers to this, I've come across an interesting point on the Paizo forums. If you are in one of the far corners and you consider these not threatened, then you can diagonally move towards the character and never provoke an AOO (that is, per RAW)... and yet, logically, a threatened area should make an uninterrupted circle around the creature. This may explain why 3.5 made an exception out of this.
Yes, that is precisely why 3.5e made that exception, and it’s also why Paizo issued an official FAQ that changed Pathfinder’s rules to add the same exception, as @caps reports in this fine answer that you should go upvote.
Thus, a reach weapon can attack the following \$X\$’s from \$C\$:
\begin{array}{c|c}
\phantom{X} & \phantom{X} & \phantom{X} & \phantom{X} & \phantom{X} & \phantom{X} & \phantom{X} \\ \hline
& X & X & X & X & X & \\ \hline
& X & & & & X & \\ \hline
& X & & C & & X & \\ \hline
& X & & & & X & \\ \hline
& X & X & X & X & X & \\ \hline
\\
\end{array}
Before the FAQ change
However, the FAQ entry that caps reports did not exist at the time this question was asked. At that time, you did not get the four corners, and so could only attack these \$X\$’s from \$C\$:
\begin{array}{c|c}
\phantom{X} & \phantom{X} & \phantom{X} & \phantom{X} & \phantom{X} & \phantom{X} & \phantom{X} \\ \hline
& A & X & X & X & & \\ \hline
& X & B & & & X & \\ \hline
& X & & C & & X & \\ \hline
& X & & & & X & \\ \hline
& & X & X & X & & \\ \hline
\\
\end{array}
Here, it would appear that someone could step from \$A\$ to \$B\$ to avoid an attack of opportunity altogether. However, even before the FAQ just changed this to be like 3.5e, the developers at Paizo had ...for lack of a better word, we’ll call it a clarification, though it honestly just confused me more. From an earlier FAQ:
Can you or can you not attack diagonally at a distance of 2x squares (15'=10' exception) with a reach weapon?
James Jacobs: Nope. A reach weapon gives a specific extension to your reach. When you count out squares, since every other square is doubled when you count diagonally, that means that there’ll be corners where you can’t reach.
Sean K. Reynolds: It's an artifact of the grid. The closest the rules come to addressing this is in Large, Huge, Gargantuan, and Colossal Creatures, which says:
Unlike when someone uses a reach weapon, a creature with greater than normal natural reach (more than 5 feet) still threatens squares adjacent to it. A creature with greater than normal natural reach usually gets an attack of opportunity against you if you approach it, because you must enter and move within the range of its reach before you can attack it.
So just because the grid has a square for "15 feet away" and a square for "5 feet away," but no square for "10 feet away," using that corner path doesn't mean you're magically teleporting from 15 feet to 5 feet; you are passing through a 10-foot-radius band around the creature, and therefore you provoke an AOO.
Admittedly it's not clear, and obviously it doesn't have the diagram in the 3E book to provide a non-textual example, but it's supposed to work as I described above.
Basically, the idea was, under the rules at the time, you didn’t threaten 15 ft. away, so you don’t get the corner, but you did threaten 10 ft. away and there’s no way to move from 15 ft. away to 5 ft. away without passing through a point that is 10 ft. away. Thus, someone moving from 15 ft. away on the diagonal to 5 ft. away on the same diagonal was going to provoke even under these rules.
So the enemy at \$A\$ moving to the point marked \$B\$ towards \$C\$ with a reach weapon provoked an attack of opportunity (assuming this isn’t a 5 ft. step of course), because somewhere between \$A\$ and \$B\$, there is a point that is 10 ft. away from \$C\$ that the enemy has to pass through.
Presumably, you would have adjudicated the enemy’s position for the purposes of the attack of opportunity as being \$A\$, though this was never made clear. In this sense, the end result was identical to the 3.5e/post-FAQ version for movement towards you: creatures leaving that corner square to enter a square inside your reach provoked an attack of opportunity as if you threatened that square. You were not eligible to make an attack of opportunity if the enemy performs any other action that provokes from \$A\$, including movement in other directions, because you do not actually threaten it.
This was a headache. Even before the FAQ changed things to match 3.5e, that was precisely what I recommended:
Reach weapons are one of the few fairly-nice things that melee can get. There’s really no need to nerf them. I strongly suggest that you straight-up ignore this nonsense and use the 3.5 rule. The exception to the usual calculation of ranges in the case of reach weapons is weird, but clearly there was a good reason for it: without it, you wind up with this mess.
It May Depend on the Creature (and the DM)
The rules are unclear on how high a "creature's space" is, and a DM may have to make a ruling. Unfortunately, "a creature's space" is defined only in a 2-Dimensional sense: on PHB, p. 191, it is defined entirely in terms of squares (not cubes).
Tiny: 2.5 by 2.5 ft
Small 5 by 5 ft
Medium 5 by 5 ft (etc.)
A DM will have to decide how tall a creature's "space" is when it comes up. This may be based not only on a creature's height (which might vary from about 4 feet for dwarves to about 8 feet for hobgoblins), but also by the space they control. As you stated:
A creature's space is the area in feet that it effectively
controls in combat, not an expression of its physical dimensions. A typical Medium creature isn't 5 feet wide, for example, but it does control a space that wide. (Ibid, bold added)
So precisely how tall a "creature's space" is may be different than its height. Different DMs may decide this differently (declaring a 5 foot cube to be every medium creature's "space" or determining space based on height, or however they wish). In some games, the top 5 foot cube of the door might be considered outside of an enemy creature's space (although definitely within their reach, and thus subject to opportunity attacks).
In your campaign, it looks like the DM considers the top part of the door to be within the hostile creature's space. Thus, unless they are using the optional "Tumble" rules (DMG, p. 272, which allows you to make a contested Acrobatics [Dex] check as an action or bonus action to move through an enemy's space), you cannot pass through it.
Best Answer
This PC can move diagonally. Doing so does not involve moving through a hostile creature's square.
(See PHB p.192: Variant: Playing on a Grid)
Characters (and monsters) can move diagonally like they do horizontally and vertically, as a one-square move. From the Entering a Square section we can tell that moving into a diagonal square doesn't involve moving into either of the adjacent squares that border it: with only 5' of movement left you can enter the diagonal square.
Diagonal movements can be restricted by an obstruction that completely fills the adjacent-not-diagonal squares—see the Corners section. But that section specifically calls out terrain and trees—stationary objects, in other words—as the obstruction. A medium-sized creature does not create this type of obstruction: as described on the previous page (Space), the opponent doesn't fill the square it's in.
There is no recognition of the longer path between two diagonal centers than between two truly adjacent centers. The PC can move to any of the corner-spots as one 5' portion of their movement.
The DMG has alternate rules for counting diagonals as alternately 5' and 10' (p. 252), but this only matters for distance considerations—even under that "Optional Rule: Diagonals" your PC could still move to a diagonal space.
Beware opportunity attacks, though!