Choose a breed, that is not known for barking, unless you want a dog that will alert you. Choose a breed that matches your activity level. Get it as a pup, establish yourself as an Alpha leader, instruct the dog in acceptable/nonacceptable behavior. Keep the dog mentally/physically balanced, etc., etc.
As the dog gets bigger and realizes he cannot get out of the door, he will move on to the windows, etc. I would hate to see that rig in a few months. Not everyone that wants a dog, should have one.
The other options: shock it, drug it, confine it, or give it to someone else.
--------------------------------------------------------------------------------