Imagine you have an image that doesn't fit into your document, but you want to make it take up the whole space.
Use your crop tool to make your document the size you want
Select a small sliver of your image near the empty space
Free Transform (CTRL+T) and hold down shift and drag your image to the side.