Inside their penalty area, the goalkeeper cannot be guilty of a handling offence incurring a direct free kick or any related sanction but can be guilty of handling offences that incur an indirect free kick.
DOGSO is a direct free kick offence, and that's what the disciplinary sanctions are...