Putting some standard borders is trivial, yes. The problem is detecting that the application is not drawing it's decorations, or more exactly, that it's not doing it so because it's hung or something (because it could be a feature, you know...)
A good alternative is let users point hung up applications themselves (using something like Xkill) and draw the "standard frame" then.