Some airlines' websites, such as Emirates, allow this. Some require you to make a "multi-city" booking. Unfortunately I'm not aware of any third party cross-airline websites that offer it. It may be that the GDS interfaces don't allow it due to the complexity.