Localization operators via time-frequency analysis