A South West NHS trust has been fined £200,000 after a patient fell to their death from a window.