Charge density constructed from the LDOS in an energy window