The purpose of the study is to determine whether dexmedetomidine is a more effective medication than haloperidol in the treatment of agitation and delirium in patients receiving mechanical ventilation in an intensive care unit. Haloperidol is a medication conventionally used for this purpose.