Re: shapes can be placed outside of page boundary
YOU set your page width.. thus it's YOUR responsibility to stick within that boundary, there are several ways to do this, the main one being set your guides to show a dotted line vertically at the correct maximum width of your page. This is a function available to you via Layout > Guide Settings
Yes the page will go to the right if you manually drag it to the right, just as it will if you drop downwards.
My suggestion is simply DON'T drag over your page width and you won't have a problem?
However, you are already heading for problems by making your page width 1024 in the first place! Never go over 1000 wide when making any page, to be safer I personally suggest 940-980, thus keeping your web pages viewable to all users (apart from those living in the North Pole or on such a low income they haven't updated their monitors since purchasing it 25 years ago)
Don't aim for success if you want it; just do what you love and believe in, and it will come naturally.