For this to work it has to physically exist outside of the door frame so that it can do that sliding, which will make it ridiculously easy for someone to break in with a crowbar. Not the case with current door designs.