If you're talking about taking a picture from one window and putting it on top of a picture in another window, all you need to do is hold Ctrl+Shift and then click and drag the photo onto the other photo's window. Photoshop will automatically center them up, Don't hold shift and you can center it yourself.