The goal of Part 2 of this clinical research study is to find the highest tolerable dose of ponatinib in combination with 5-azacytidine and to learn if the highest dose level found can help to control FLT3-mutated AML or FLT3-mutated high-risk MDS. The safety of this combination will also be studied.