Take for example this drug https://en.wikipedia...Adverse_effects
The side-effects include psychosis and the drug increases dopamine 3-fold in various parts of the brain, as well as acting as an nmda antagonist, both of which are disease models for schizophrenia. So why is it it not contraindicated in patients with psychotic disorders?