The Madagascar Dragon Tree prefers to be placed where it can enjoy bright, direct sunlight. Unlike many other houseplants, indirect light simply will not get the job done for this plant, as it is used to direct sunlight. However, it does adapt well to indirect and lowlight conditions, providing you with some leniency here.
Find an area of your home that enjoys bright, direct light throughout the day. If you are unable to find somewhere in your home that fits this description, you can place it in an area that enjoys indirect sunlight and supplement it in different ways.