In gamemaker you can do it with views. Just set your view to 160x144, and your viewport to 320x288. (or bigger) This will display only the allowed pixels but scale them up by two to make the screen bigger. There's also a better way but I haven't really grasped it yet.
It's also possible if you don't want to use views for whatever reason and don't allow resizing is display_set_size(). Also remember to uncheck color interpolation in global settings, otherwise scaling will be blurry.