How can I keep file attachment windows (e.g. Gmail in Chrome) from going behind the Dock so I can't click OK or Cancel?
Hide the Dock using ⌥⌘D, then drag the bottom of the pane upwards. Unhide the Dock with the same keyboard shortcut, then interact with the pane normally. The pane should remember its size for next time.