Here's an opened up view of the main compartment where a handgun is normally carried. The G21 uses up a lot of the available space, so I'm not sure if a G40 would fit. Adjusting the resting angle might make a fit.
[img:left]
[/img]
Here it is partially zipped with the muzzle settled into the corner.
[img:left]
[/img]