Hey iac249,
You could try breaking the doorway into 2 parts, with the near side and top in the foreground, and the far side and bottom in the background, as shown in the image below. By "foreground" and "background" I simply mean Z order relative to the character.
[attachment=0:3epux70b][/attachment:3epux70b]